var stockHistoryPriceDAO = require('../controller/controller.stockHistoryPrice');

/**
 * 股票历史价格Service
 */
module.exports = {
    create:function (req, res, next) {
        stockHistoryPriceDAO.create(req.body,function (err, result) {

            next(null, result);
        });
    },
    getDetail:function (req, res, next) {
        stockChannelDAO.get(req.params.rowId,function (err,result) {
          if (err){
              next(err, null);
          }else{

          }
      });
    },
    deleteByIds:function (req, res, next) {
     var rowIds = req.body.rowIds || [];
     if (rowIds.length>0){
         stockChannelDAO.deleteByIds(rowIds, function (err, result) {
             next(err, result);
         });
     }else{
         next();
     }
    }
}